package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 问题达人
 */
@Getter
@Setter
public class Question extends BaseDomain{
    //作者id
    private User user;
    //标题
    private String title;
    //图片
    private String questionImg;
    //地址
    private String placeName;
    //内容
    private String content;
    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date creatTime;
}